package com.ljx.rpc.client;

import com.ljx.rpc.client.domain.HelloDto;
import com.ljx.rpc.client.service.HelloService;
import com.ljx.rpc.core.transport.RpcClientProxy;
import com.ljx.rpc.core.transport.socket.client.SocketClient;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-10-07  19:37
 */
public class MainClient {
    public static void main(String[] args) {
        RpcClientProxy rpcClientProxy = new RpcClientProxy(new SocketClient());
        HelloService helloService = rpcClientProxy.getProxy(HelloService.class);
        HelloDto helloDto = helloService.sayMsg(new HelloDto("小A", "你好"));
        System.out.println(helloDto);
    }
}
